.class public Lrexsee/core/browser/clazz/TouchEventInfo;
.super Ljava/lang/Object;
.source "TouchEventInfo.java"


# static fields
.field public static EVENT_CANCEL:Ljava/lang/String;

.field public static EVENT_DOUBLECLICK:Ljava/lang/String;

.field public static EVENT_DOWN:Ljava/lang/String;

.field public static EVENT_FLING:Ljava/lang/String;

.field public static EVENT_LONGPRESS:Ljava/lang/String;

.field public static EVENT_MOVE:Ljava/lang/String;

.field public static EVENT_UP:Ljava/lang/String;


# instance fields
.field public downTime:J

.field public eventTime:J

.field public type:Ljava/lang/String;

.field public velocityX:I

.field public velocityY:I

.field public x:I

.field public x2:I

.field public y:I

.field public y2:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 6
    const-string v0, "TouchDown"

    sput-object v0, Lrexsee/core/browser/clazz/TouchEventInfo;->EVENT_DOWN:Ljava/lang/String;

    .line 7
    const-string v0, "TouchUp"

    sput-object v0, Lrexsee/core/browser/clazz/TouchEventInfo;->EVENT_UP:Ljava/lang/String;

    .line 8
    const-string v0, "TouchMove"

    sput-object v0, Lrexsee/core/browser/clazz/TouchEventInfo;->EVENT_MOVE:Ljava/lang/String;

    .line 9
    const-string v0, "TouchCancel"

    sput-object v0, Lrexsee/core/browser/clazz/TouchEventInfo;->EVENT_CANCEL:Ljava/lang/String;

    .line 10
    const-string v0, "DoubleClick"

    sput-object v0, Lrexsee/core/browser/clazz/TouchEventInfo;->EVENT_DOUBLECLICK:Ljava/lang/String;

    .line 11
    const-string v0, "LongPress"

    sput-object v0, Lrexsee/core/browser/clazz/TouchEventInfo;->EVENT_LONGPRESS:Ljava/lang/String;

    .line 12
    const-string v0, "Fling"

    sput-object v0, Lrexsee/core/browser/clazz/TouchEventInfo;->EVENT_FLING:Ljava/lang/String;

    .line 5
    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 5
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 18
    iput v0, p0, Lrexsee/core/browser/clazz/TouchEventInfo;->x2:I

    .line 19
    iput v0, p0, Lrexsee/core/browser/clazz/TouchEventInfo;->y2:I

    .line 20
    iput v0, p0, Lrexsee/core/browser/clazz/TouchEventInfo;->velocityX:I

    .line 21
    iput v0, p0, Lrexsee/core/browser/clazz/TouchEventInfo;->velocityY:I

    .line 5
    return-void
.end method


# virtual methods
.method public basicAssignment(Ljava/lang/String;Landroid/view/MotionEvent;)V
    .locals 2
    .param p1, "eventType"    # Ljava/lang/String;
    .param p2, "event"    # Landroid/view/MotionEvent;

    .prologue
    .line 23
    iput-object p1, p0, Lrexsee/core/browser/clazz/TouchEventInfo;->type:Ljava/lang/String;

    .line 24
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    iput v0, p0, Lrexsee/core/browser/clazz/TouchEventInfo;->x:I

    .line 25
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    iput v0, p0, Lrexsee/core/browser/clazz/TouchEventInfo;->y:I

    .line 26
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getDownTime()J

    move-result-wide v0

    iput-wide v0, p0, Lrexsee/core/browser/clazz/TouchEventInfo;->downTime:J

    .line 27
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getEventTime()J

    move-result-wide v0

    iput-wide v0, p0, Lrexsee/core/browser/clazz/TouchEventInfo;->eventTime:J

    .line 28
    return-void
.end method
